package com.fubowen.reader.db.bean

import androidx.room.Entity
import androidx.room.Index
import androidx.room.PrimaryKey

@Entity(indices = [Index(value = ["themeId", "key"], unique = true)])
data class ThemeConfigBean(
    @PrimaryKey(autoGenerate = true)
    val id: Int = 0,
    val label: String = "",
    val key: String = "",
    val value: String = "",
    var description: String = "",
    var themeId: Int = 0,
    var viewTag: String = "",
    var viewId: Int = -1
) {
    constructor(label: String, key: String, value: String) : this(0, label, key, value)
}